﻿namespace WizardEngine.Core.Specification
{
    /// <summary>
    /// Represents single transition in flow graph. 
    /// </summary>
    internal class TransitionSpecification<T> where T : FlowState
    {
        public IStepSpecification<T> Target
        {
            get; private set;
        }

        public TransitionCondition<T> Condition
        {
            get; private set;
        }

        public TransitionSpecification(IStepSpecification<T> target, TransitionCondition<T> condition)
        {
            this.Target = target;
            this.Condition = condition;
        }
    }
}
